package cfengMiddleware.server.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.jetbrains.annotations.NotNull;

/**
 * @author Cfeng
 * @date 2022/9/13
 * 发红包的DTO： 包括发红包人的外键ID，红包个数和总金额
 */

@Data
@AllArgsConstructor  //有构造器才行
@NoArgsConstructor
@ToString
public class RedPackageDto {

    private Integer userId;

    @NotNull
    private Integer total;

    @NotNull
    private Integer amount;
}
